#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int i = 0;
	int count = 0;
	for (i = 100; i < 1000; i++)
	{
		int a = 0, b = 0;
		a = i % 10;
		b = i / 100;
		if (a == b)
		{
			printf("%d ", i);
			count++;
		}
	}
	printf("\ncount=%d", count);
}